package cn.edu.scau.cmi.dengzejun.chapter05;

public class Circle {
	double radius,area,x,y;
	
	Circle(){
		return;
	}
	
	Circle(double r){
		radius=r;
		return;
	}
	
	public void SetX(double a) {
		x=a;
		return;
	}
	
	public void SetY(double b) {
		y=b;
		return;
	}
	
	public double GetX() {
		return x;
	}
	
	public double GetY() {
		return y;
	}
	
	 void SetRadius(double r) {
		if (r>0) {
			radius=r;
		}
		return;
	}
	 
	 double GetRadius() {
		return radius;
	}
	 
	 double GetArea() {
		area=3.14*radius*radius;
		return area;
	}
}
